package com.example.recruit.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author 手机号验证工具类
 */
public class RegxPhoneNumber {

    public static boolean regxPhone(String phone){
        String pattern = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8] |18[0-9]|19[0-35-9])\\d{8}$";
        Pattern r = Pattern.compile(pattern);
        Matcher m = r.matcher(phone);
       return m.matches();
    }


}
